﻿using System;
using System.Collections.Generic;
using System.Text;
using Best.SmartCms.Dto.Common;
using Best.SmartCms.Dto.Request;

namespace Best.SmartCms.Dto
{
    /// <summary>
    /// 
    /// </summary>
    public class ProductDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 是否上架
        /// </summary>
        public bool IsShelf { get; set; }

        /// <summary>
        /// 商品分类
        /// </summary>
        public long CategoryId { get; set; }
        /// <summary>
        /// 销售价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 商品原价
        /// </summary>
        public decimal OldPrice { get; set; }
        /// <summary>
        /// 成本价格
        /// </summary>
        public decimal ProductCost { get; set; }
        /// <summary>
        /// 商家SKU
        /// </summary>
        public string SKU { get; set; }
        /// <summary>
        /// 商品详情
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int StockQuantity { get; set; }
        /// <summary>
        /// 已售数量
        /// </summary>
        public int SoldQuantity { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public decimal? Weight { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        public decimal? Length { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public decimal? Width { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public decimal? Height { get; set; }

        /// <summary>
        /// 是否推荐
        /// </summary>
        public bool IsTuijian { get; set; }

    }

	/// <summary>
    /// 编辑对象
    /// </summary>
	public class ProductEditDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 是否上架
        /// </summary>
        public bool IsShelf { get; set; }
        /// <summary>
        /// 商品分类
        /// </summary>
        public long CategoryId { get; set; }
        /// <summary>
        /// 销售价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 商品原价
        /// </summary>
        public decimal OldPrice { get; set; }
        /// <summary>
        /// 成本价格
        /// </summary>
        public decimal ProductCost { get; set; }
        /// <summary>
        /// 商家SKU单位
        /// </summary>
        public string SKU { get; set; }
        /// <summary>
        /// 商品详情
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int StockQuantity { get; set; }
        /// <summary>
        /// 已售数量
        /// </summary>
        public int SoldQuantity { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public decimal? Weight { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        public decimal? Length { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public decimal? Width { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public decimal? Height { get; set; }

        /// <summary>
        /// 是否推荐
        /// </summary>
        public bool IsTuijian { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public List<UploadFileDto> ImageList { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public ProductEditDto()
        {
            ImageList=new List<UploadFileDto>();
        }
    }

    /// <summary>
    /// 查询条件
    /// </summary>
    public class ProductListQueryDto: PagedQueryRequest
    {

      
    }

    /// <summary>
    /// 列表对象
    /// </summary>
	public class ProductListDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 是否上架
        /// </summary>
        public bool IsShelf { get; set; }
        /// <summary>
        /// 商品分类
        /// </summary>
        public long CategoryId { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 主图地址
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 销售价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 商品原价
        /// </summary>
        public decimal OldPrice { get; set; }
        /// <summary>
        /// 成本价格
        /// </summary>
        public decimal ProductCost { get; set; }
        /// <summary>
        /// 商家SKU
        /// </summary>
        public string SKU { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int StockQuantity { get; set; }
        /// <summary>
        /// 已售数量
        /// </summary>
        public int SoldQuantity { get; set; }
      
    }
}
